package com.deppon.vts.micro.service.logic;

import com.deppon.vts.micro.service.IConfirmService;
import com.deppon.vts.micro.service.biz.PublicBizBaseService;
import com.deppon.vts.micro.service.biz.bean.BizContext;
import com.deppon.vts.micro.service.logic.bean.LogicConfirmRequestEntity;
import com.deppon.vts.micro.service.logic.bean.LogicConfirmResponseEntity;


public abstract class LogicConfirmService<I extends LogicConfirmRequestEntity, R extends LogicConfirmResponseEntity> extends PublicBizBaseService<I, R> 
 	implements IConfirmService<I, R>{
	
	public LogicConfirmService(){
		INTERFACE = "CM";
	}
	
	@Override
	public void process(BizContext<I, R> ctx) throws Exception {
		LogicConfirmRequestEntity request = (LogicConfirmRequestEntity) ctx.getRequest();
		LogicConfirmResponseEntity response = (LogicConfirmResponseEntity) ctx.getResponse();
		//TODO 这里完善服务的通用逻辑
		{
			if(log.isDebugEnabled()){
				log.debug("LogicConfirmService is processing for msgId: {}",this.getMsgId());
			}
		}
		super.process(ctx);
	}
	
	@Override
	public void confirmTccTransaction(BizContext<I, R> ctx) {
		
	}
	
	@Override
	public void cancelTccTransaction(BizContext<I, R> ctx) {
		
	}
}
